package com.xc.taoku.utils;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Random;
import java.util.UUID;

public class NoUtils {

    /**
     * 生成订单编号
     * @return
     */
    public static String getOrderNo(){

        String format = "yyyyMMddHHmmssms";
        SimpleDateFormat smt = new SimpleDateFormat(format);
        String format1 = smt.format(new Date());
        Random rand = new Random();
//        System.out.println(format1);
        int i = rand.nextInt(10000);
        return format1+i;

    }

    public static void main(String[] args) {

        System.out.println(UUID.randomUUID().toString().length());
    }
}
